{include file="inc/header.html"} 
<?php
$this->_var['indexjs'][] = $this->_var['TMPL_REAL']."/js/index.js";
$this->_var['cpindexjs'][] = $this->_var['TMPL_REAL']."/js/index.js";
$this->_var['indexcss'][] = $this->_var['TMPL_REAL']."/css/index.css";
?>
<script type="text/javascript" src="{$APP_ROOT}/public/runtime/app/deal_cate_conf.js"></script>
<script type="text/javascript" src="{$APP_ROOT}/public/runtime/app/deal_region_conf/{$deal_city.id}.js"></script>
<script type="text/javascript" src="{function name="parse_script" v="$indexjs" c="$cpindexjs"}"></script>
<link rel="stylesheet" type="text/css" href="{function name="parse_css" v="$indexcss"}" />
<div class="blank"></div>

<div class="index_left f_l wb">
	{if $area_list}
	<div class="filter_title">区域</div>
	<div class="filter_item clearfix mt20">
		<ul>
		{foreach from=$area_list item=area_item}
		<li><a href="{$area_item.url}" title="{$area_item.name}">{$area_item.name}</a></li>
		{/foreach}
		</ul>
	</div>
	<div class="blank"></div>
	<div class="blank"></div>
	{/if}
	{if $cate_list}
	<div class="filter_title">菜系</div>
	<div class="filter_item clearfix mt20">
		<ul>
		{foreach from=$cate_list item=cate_item}
		<li><a href="{$cate_item.url}" title="{$cate_item.name}">{$cate_item.name}</a></li>
		{/foreach}
		</ul>
	</div>
	{/if}
</div>
<div class="index_right f_r wb">
	<div id="main_adv_box" class="main_adv_box">
			<div id="main_adv_img" class="main_adv_img">
				<span rel="1"><adv adv_id="首页未开启广告位1" /></span>
				<span rel="2"><adv adv_id="首页未开启广告位2" /></span>
				<span rel="3"><adv adv_id="首页未开启广告位3" /></span>					
			</div>
			<div id="main_adv_ctl" class="main_adv_ctl">
				<ul>
					<li rel="1">1</li>
					<li rel="2">2</li>
					<li rel="3">3</li>
				</ul>
			</div>
			<script type="text/javascript" src="{$TMPL}/js/index_adv.js"></script>
	</div>
	<div class="blank"></div>
	<div class="bdd wb clearfix">
		<div class="res_bg_grad">
			<div class="tit f_l">
				<h3 class="f_l">精选餐厅</h3>
				<span class="char_corr c08 mt9 f_l">◆</span>
			</div>
			<div class="res_count pl5 f_l">
				({$deal_city.name}站 共有<span style="color:red">{$res_count}</span>家餐厅 )
			</div>
			<span class="f_r add_res pr10">
				没有找到想要的餐厅？立即添加，即可获赠相应奖励。
				<a class="res_fit_add_btn_s b mt2 r" href="{url x="biz" r="join"}">添加餐厅</a>
			</span>
		</div>
	</div>
	<div class="blank"></div>
	<div class="res-list-wall">
		{foreach from="$res_list" item="res" name="res"}
			<div class="item f_l" {if $smarty.foreach.res.iteration mod 4 eq 0}style="margin-right:0"{/if}>
				<div class="pic">
					<a href="{url x="store" r="view" p="id=$res.id"}" title="{$res.name}"><img src="{function name="get_spec_image" v=$res.preview w=140 h=140 g=1}"  width=140 height=140  {if $res.preview}class="lazy"{/if} alt="{$res.name}" width=140 height=140 /></a>
				</div>
				<div class="item_info">
					<div class="title">
						<a href="{url x="store" r="view" p="id=$res.id"}" title="{$res.name}">{function name="msubstr" v=$res.name b=0 e=8}</a>
					</div>
					<div class="">
					评分：<span class="avg_point_{function name="intval" val="$res.avg_point"}" title="总评：{function name="round" val="$res.avg_point" p="1"}"></span>
					<span class="avg_point">{function name="round" val="$res.avg_point" p="1"}</span>
					</div>
					{if $res.cate_list}
					<div class=" cate_item">
						菜系：<span class="cate">{foreach from="$res.cate_list" item="cate"}<a href="{$cate.url}">{$cate.name}</a>&nbsp;{/foreach}</span>
					</div>
					{/if}
					{if $res.area}
					<div class="">
				 	商圈：<a href="{if $res.area.pid}{url x="store" r="index" p="aid=$res.area.pid&qid=$res.area.id"}{else}{url x="store" r="index" p="aid=$res.area.id"}{/if}">{$res.area.name}</a>
					</div>
					{/if}
					{if $res.ref_avg_price}
					<div class="">
				 	人均：{function name="format_price" v=$res.ref_avg_price}
					</div>
					{/if}
				</div>
			</div>
		{/foreach}
	</div>
</div><!--end index_left-->
<div class="blank"></div>

{include file="inc/footer.html"}